import Lazy from "./lazy";
import { Navigate } from "react-router-dom";
const baseRouter = [
  { path: "/", element: <Navigate to={"/home"}></Navigate> },
  { path: "/home", element: Lazy("/home") },
  { path: "/huodong", element: Lazy("/huodong") },
  { path: "/shichang", element: Lazy("/shichang") },
  { path: "/zhongxin", element: Lazy("/zhongxin") },
  //杜
  { path: "/login", element: Lazy("/login") },
  { path: "/register", element: Lazy("/register") },
  { path: "/searchpwd", element: Lazy("/searchpwd") },
  //苗
  { path: "/home/HomeDetail/:id", element: Lazy("/home/HomeDetail") },
  { path: "/ZfJieGuo", element: Lazy("/home/ZfJieGuo") }, //市场详情
  //魏
  { path: "/details", element: Lazy("/details") }, //发布
  { path: "/fanbu", element: Lazy("/fanbu") },
  //侯
  { path: "/huodongdetail", element: Lazy("/huodong/huodongdetail") },
  { path: "/register", element: Lazy("/register") },
  { path: "/searchpwd", element: Lazy("/searchpwd") },
  { path: "/jieshao", element: Lazy("/jieshao") },
  //赵
  { path: "/geren", element: Lazy("/zhao/Geren") },
  { path: "/nicheng", element: Lazy("/zhao/Nicheng") },
  { path: "/dizhi", element: Lazy("/zhao/Dizhi") },
  { path: "/dingdan", element: Lazy("/zhao/Dingdan") },
  { path: "/dinglist", element: Lazy("/zhao/Dinglist") },
  { path: "/pingjia/:id", element: Lazy("/zhao/Pingjia") },
  { path: "/woshangpin", element: Lazy("/zhao/Woshangpin") },
  { path: "/wohuodong", element: Lazy("/zhao/Wohuodong") },
  { path: "/wohuodongdl/:id", element: Lazy("/zhao/Wohuodongdl") },
  { path: "/woshangpindl/:id", element: Lazy("/zhao/Woshangpindl") },
  { path: "/guanyu", element: Lazy("/zhao/Guanyu") },
  { path: "/renzheng/:id", element: Lazy("/zhao/Renzheng") },
];
export default baseRouter;
